//
//  YYWebViewVC.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/9/19.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYWebViewVC.h"

@interface YYWebViewVC ()
@property (nonatomic ,strong)UIWebView * webView;

@end

@implementation YYWebViewVC

- (void)viewDidLoad {
    [super viewDidLoad];    
}

- (void)loadUrl:(NSString *)url{
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
}

-(UIWebView *)webView{
    if (!_webView) {
        _webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
        [self.view addSubview:_webView];
    }
    return _webView;
}

@end
